home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 42 / Amiga Format AFCD42 (Issue 126, Aug 1999).iso / -serious- / programming / c / pmm / developer / autostarts_src / reqtoolsbase.c < prev   
Encoding:
C/C++ Source or Header  |  1999-05-17  |  306 b   |  19 lines

  1. #include <stdio.h>
  2. #include <exec/libraries.h>
  3. #include <proto/exec.h>
  4.  
  5. struct Library *ReqToolsBase = NULL;
  6.  
  7. void _INIT_5_ReqToolsBase()
  8. {
  9.   if (!(ReqToolsBase = OpenLibrary("reqtools.library",0))) {
  10.     exit(20);
  11.   }
  12. }
  13.  
  14. void _EXIT_5_ReqToolsBase()
  15. {
  16.   if (ReqToolsBase)
  17.     CloseLibrary(ReqToolsBase);
  18. }
  19.